/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */

import type { MaSearchItem } from "@mineadmin/search";

export default function getSearchItems(t: any): MaSearchItem[] {
  return [
    {
      label: "商品名称",
      prop: "commodity_name",
      render: "input",
      renderProps: { placeholder: t("form.pleaseInput", { msg: "商品名称" }) },
    },
    {
      label: "数量",
      prop: "quantity",
      render: "input",
      renderProps: { placeholder: t("form.pleaseInput", { msg: "数量" }) },
    },
    {
      label: "单价",
      prop: "price",
      render: "input",
      renderProps: { placeholder: t("form.pleaseInput", { msg: "单价" }) },
    },
    {
      label: "折扣",
      prop: "discount",
      render: "input",
      renderProps: { placeholder: t("form.pleaseInput", { msg: "折扣" }) },
    },
    {
      label: "总价",
      prop: "total_price",
      render: "input",
      renderProps: { placeholder: t("form.pleaseInput", { msg: "总价" }) },
    },
  ];
}
